﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using JXT.PrimaryKey.Batman.Core.WcfService;

namespace JXT.PrimaryKey.Batman.WcfService.Models.UserSystem
{
    /// <summary>
    /// 注册用户
    /// </summary>
    [DataContract(Namespace = ServiceEnvironment.ModelNamespace)]
    public class RegisterUser
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 邮件地址
        /// </summary>
        [DataMember]
        public string Mail { get; set; }

        /// <summary>
        /// 密码（原始密码）
        /// </summary>
        [DataMember]
        public string Password { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [DataMember]
        public string RealName { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [DataMember]
        public Gender Gender { get; set; }

        /// <summary>
        /// 身份信息
        /// </summary>
        [DataMember]
        public string Identity { get; set; }

        /// <summary>
        /// 注册ip
        /// </summary>
        [DataMember]
        public string RegisterIp { get; set; }

        /// <summary>
        /// 注册角色id数组（为空则使用默认组）
        /// </summary>
        [DataMember]
        public int[] RoleIdArray { get; set; }
    }
}
